home *** CD-ROM | disk | FTP | other *** search
/ Core Concepts in Art 2 / Core Concepts in Art (Frames of Reference)(The McGraw-Hill Companies)(2004).iso / mac / media / guess.swf / scripts / DefineButton2_19 / BUTTONCONDACTION on(release).as next >
Text File  |  2003-11-28  |  804b  |  27 lines

  1. on(release){
  2.    if(_parent.retest != 1)
  3.    {
  4.       if(retest_mc.xMark_mc._visible == 1)
  5.       {
  6.          if(_parent["incorrectChapt" + _parent.theChapter] == undefined)
  7.          {
  8.             _parent["incorrectChapt" + _parent.theChapter] = new Array();
  9.          }
  10.          _parent["incorrectChapt" + _parent.theChapter].push(_parent["chapt" + _parent.theChapter][0]);
  11.       }
  12.       _parent["chapt" + _parent.theChapter].splice(0,1);
  13.       next_btn._visible = 0;
  14.       next_grph._visible = 1;
  15.    }
  16.    else
  17.    {
  18.       _parent["chapt" + _parent.theChapter].splice(0,1);
  19.       if(_parent["chapt" + _parent.theChapter].length == 0)
  20.       {
  21.          _parent.guessingArray.splice(0,1);
  22.          _parent.theChapter = _parent.guessingArray[0];
  23.       }
  24.    }
  25.    _parent.nextQuestion();
  26. }
  27.